<div id="c_h1">
	<div id="statika_header">
		<div id="small_flags_workspace">
			<script type="text/javascript">var country_popups = [];</script>
			<?php foreach ($this->CountryList as $v) { ?>
			<a href="<?=HTTP_HOST.'/'.$v['alias']?>" style="top: <?=(int) $v['staticY']?>px; left: <?=(int) $v['staticX']?>px; z-index: 2000;"><img rel="<?=$v['ID']?>" src="<?=HTTP_HOST.'/'.$v['smallFlag']?>" alt="<?=$v['Name']?>"  style="width: 34px; height: 34px; z-index: 2000;"/></a>
				<script type="text/javascript">
				<?php
					$links = array();
					if ($v['count'][OBJECT_SALE] > 0) {
						$links[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'" onclick="makeSearch({country:'.$v['ID'].', sale_type:'.OBJECT_SALE.'}); return false;">'.$this->translate('Предложений по продаже').': <span>'.$v['count'][OBJECT_SALE].'</span></a>';
					}	 
					if ($v['count'][OBJECT_RENT] > 0) {
						$links[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'" onclick="makeSearch({country:'.$v['ID'].', sale_type:'.OBJECT_RENT.'}); return false;">'.$this->translate('Предложений по оренде').': <span>'.$v['count'][OBJECT_RENT].'</span></a>';
					}	 
					if ($v['count'][OBJECT_INVESTMENT_PROJECT] > 0) {
						$links[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'" onclick="makeSearch({country:'.$v['ID'].', sale_type:'.OBJECT_INVESTMENT_PROJECT.'}); return false;">'.$this->translate('Предложений инвестроект').': <span>'.$v['count'][OBJECT_INVESTMENT_PROJECT].'</span></a>';
					}	
					$pages = array(); 
					foreach ($v['pages'] as $v2) $pages[] = '<a href="'.HTTP_HOST.'/'.$v['alias'].'/info/'.$v2['alias'].'">'.$v2['Title'].'</a>';
				?>
				country_popups[<?=$v['ID']?>] = '<div class="pinfo"><div class="tri"><img src="<?=HTTP_HOST?>/images/popups/tri.png" alt="" /></div><div class="gtop"><h5><?=$v['Name']?></h5><div class="gleft"><div class="gright"><div class="info"><?=str_replace("'", "\'", $v['description'])?></div><div class="links"><?=implode('', $links).implode('', $pages)?></div></div></div></div></div>';	
			</script>
			<?php } ?>
		
		</div>
	</div>
	<div id="c_logo"><a href="<?=HTTP_HOST?>"><img src="<?=HTTP_HOST?>/images/aurora/logo2.png"/></a></div>
	<div id="c_down_d">
		<div id="c_download_d" style="visibility: hidden;">
			<img id="online_consult" alt="" src="<?=HTTP_HOST?>/images/aurora/online_consult.png">
		</div>
		<div id="c_sitemap_d">
			<a href="javascript:;"><img alt="" id="sendmail" src="<?=HTTP_HOST?>/images/aurora/send_mail.png"></a>
			<a href="<?=HTTP_HOST ?>/sitemap"><img alt="" id="sitemap" src="<?=HTTP_HOST?>/images/aurora/sitemap.png"></a>
		</div>	
	</div>
	<div id="c_srch">
		<div class="country-site-search">
				<?=$this->render('blocks/search-form.phtml')?>
		</div>		
	</div>
</div>
